package com.ambulance.project.biz.mapper;

import com.ambulance.project.biz.entity.Driver;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 司机管理 Mapper 接口
 * </p>
 *
 * @author zr
 * @since 2020-04-23
 */
public interface DriverMapper extends BaseMapper<Driver> {

    @Select("select * from biz_driver where name like CONCAT('%',#{name},'%')")
    Driver selectByName(@Param("name") String name);

}
